{extend name="extra@admin/content"}

{block name="content"}
<form onsubmit="return false;" action="__SELF__" data-auto="true" method="post" class='layui-form' style='padding-top:20px'>
    <div class="layui-form-item">
        <label class="layui-form-label">商品标志</label>
        <div class="layui-input-block">
            {foreach $sign as $v}
            <label class="think-checkbox">
                <input type="radio"  name="goods_sign" value="{$v.id}" lay-ignore {if condition="$goods.goods_sign eq $v.id"} checked {/if}> {$v.sign}
            </label>
            {/foreach}
        </div>
    </div>
    <div class="hr-line-dashed"></div>
    <div class="col-sm-4 col-sm-offset-2">
        {if $id and isset($id)}<input type='hidden' value='{$id}' name='id'/>{/if}
        <div class="layui-form-item text-center">
            <button class="layui-btn" type="submit">保存</button>
        </div>
    </div>
    <script type="text/javascript">
    layui.use('form', function(){
        var form = layui.form;      //只有执行了这一步，部分表单元素才会自动修饰成功
        form.render();
    });

    form.on('select(test)', function(data){

    });
</script>
</form>

{/block}